package com.gzc.dao;

import com.gzc.model.Message;
import com.gzc.model.UserReceivedMessage;

public interface IMessageDao extends IBaseDao<Message> {
	/**
	 * 检查某个用户是否已经读过该msg
	 * @param userId 要检查的用户id
	 * @param msgId 私人信件id
	 * @return
	 */
	public boolean checkIsRead(int userId, int msgId);
	/**
	 * 根据用户id和私人信件id加载UserReceivedMessage对象
	 * @param userId 用户id
	 * @param msgId 私人信件id
	 * @return 用户接受到的消息
	 */
	public UserReceivedMessage loadUserMessage(int userId,int msgId);
	
}
